﻿<telerik:RadWindow x:Class="FXC.SL.UserControls.Window.AddingUserWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" Loaded="RadWindow_Loaded"
    mc:Ignorable="d" Header="用户注册" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" Background="Silver" d:DesignHeight="260" d:DesignWidth="450">
    <telerik:RadWindow.IconTemplate>
        <DataTemplate>
            <Image Source="../../Images/Res/add_user.png" Stretch="None"/>
        </DataTemplate>
    </telerik:RadWindow.IconTemplate>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80" />
            <ColumnDefinition Width="230" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <telerik:RadButton Content="确定" Grid.Row="5" Height="23" HorizontalAlignment="Left" Name="radButtonOK" VerticalAlignment="Center" Width="75" Click="radButtonOK_Click" Grid.Column="1" Margin="191,18,0,6" Grid.ColumnSpan="2" />
        <telerik:RadButton Content="取消" Grid.Row="5" Height="23" HorizontalAlignment="Left" Name="radButtonCancel" VerticalAlignment="Center" Width="75" Click="radButtonCancel_Click" Grid.Column="2" Margin="41,18,0,4" />
        <!--Labels-->
        <TextBlock Text="用户名：" Style="{StaticResource AddingUserFormHeader}"/>
        <TextBlock Text="密码：" Grid.Row="1" Style="{StaticResource AddingUserFormHeader}"/>
        <TextBlock Text="电子邮件：" Grid.Row="2" Style="{StaticResource AddingUserFormHeader}"/>
        <TextBlock Text="电话：" Grid.Row="3" Style="{StaticResource AddingUserFormHeader}"/>
        <TextBlock Text="国家：" Grid.Row="4" Style="{StaticResource AddingUserFormHeader}"/>
        
        <!--Input-->
        <TextBox x:Name="tbName" Grid.Column="1" Style="{StaticResource AddingUserFormInput}" />
        <PasswordBox x:Name="tbPwd" Grid.Column="1" Grid.Row="1" Margin="5" />
        <TextBox x:Name="tbEmail" Grid.Column="1" Grid.Row="2" Style="{StaticResource AddingUserFormInput}" />
        <TextBox x:Name="tbPhone" Grid.Column="1" Grid.Row="3" Style="{StaticResource AddingUserFormInput}" />
        <telerik:RadComboBox x:Name="rcbCountry" Grid.Column="1" Grid.Row="4" Margin="5,3" />
        <!--Error message-->
        <TextBlock x:Name="tbNameTip" Height="20" Grid.Column="2" Grid.Row="0" Text="请输入用户名" Style="{StaticResource AddingUserFormHeaderTip}" />
        <TextBlock x:Name="tbPwdTip" Height="20" Grid.Column="2" Grid.Row="1" Text="请输入用户密码" Style="{StaticResource AddingUserFormHeaderTip}" />
        <TextBlock x:Name="tbEmailTip" Height="20" Grid.Column="2" Grid.Row="2" Text="请输入合法电子邮件" Style="{StaticResource AddingUserFormHeaderTip}" />
        <TextBlock x:Name="tbPhoneTip" Height="20" Grid.Column="2" Grid.Row="3" Text="请输入电话号码" Style="{StaticResource AddingUserFormHeaderTip}" />
        <TextBlock x:Name="tbCountryTip" Height="20" Grid.Column="2" Grid.Row="4" Text="请选择国家" Style="{StaticResource AddingUserFormHeaderTip}" />
        
    </Grid>
</telerik:RadWindow>
   
